package controller;

import java.util.LinkedList;

import bean.ColorCheckBean;
import bean.util.WindowUtil;

public class ToolController {

	public LinkedList<Integer> getLv1PetList() {
		LinkedList<Integer> ret = new LinkedList<Integer>();

		for (int i = 0; i < LV1_CHECKERS.length; i++) {
			ColorCheckBean checker = LV1_CHECKERS[i];
			if (WindowUtil.checkPixelColor(WindowUtil.toolWin, checker)) {
				ret.addLast(i);
			}
		}

		return ret;
	}

	private static final ColorCheckBean[] LV1_CHECKERS = {
			new ColorCheckBean(111, 54, -8355712, -8355712),
			new ColorCheckBean(222, 54, -8355712, -8355712),
			new ColorCheckBean(333, 54, -8355712, -8355712),
			new ColorCheckBean(444, 54, -8355712, -8355712),
			new ColorCheckBean(555, 54, -8355712, -8355712),
			new ColorCheckBean(111, 108, -8355712, -8355712),
			new ColorCheckBean(222, 108, -8355712, -8355712),
			new ColorCheckBean(333, 108, -8355712, -8355712),
			new ColorCheckBean(444, 108, -8355712, -8355712),
			new ColorCheckBean(555, 108, -8355712, -8355712) };

}
